<?php
/**
 * Model XU ly tao lap lop
 * @author Trinh Thanh Phuong
 *
 */
class user_modUser extends Efy_DB_Connection {	
	public function QLGDClassUpdate($fkStaff, $oldPass, $newPass){
		$dblinkUser = Efy_Init_Config::_setDbLinkUser();
		$sql = "Exec ".$dblinkUser.".dbo.StaffChangePass ";	
		$sql .= "'" . $fkStaff . "'";
		$sql .= ",'" . $oldPass."'";
		$sql .= ",'" . $newPass . "'";
		//echo $sql; exit; 			
		try {			
			$arrTempResult = $this->adodbExecSqlString($sql) ; 			
			$Result= $arrTempResult['RET_ERROR'];
		}catch (Exception $e){
			echo $e->getMessage();
		};				
		return $Result;		
	}
}	
?>
